/**
 * @description: 导出并下载excel文件
 * @param {string} url 路径
 * @param {Object} data url参数
 * @return {*}
 */
const exportExl = (url, data) => {
    let dataStr = ''
    for(let key in data){
        dataStr += `&${key}=${(data)[key]}`
    }
    dataStr = dataStr.slice(1)
    let path = `${import.meta.env.VITE_APP_HTTPURL}${url}?${dataStr}`
    window.open(path)
}
export default exportExl